package com.gl.saasservice.entity;


import javax.persistence.*;
import java.util.Date;

/**
 * 承租人授权信息设置表
 */
@Entity
@Table(name = "m_match_user_author")
public class MatchUserAuthor extends IdEntity{

    @Basic
    @Column(name = "match_user_stock_id", nullable = true)
    private String matchUserStockId; //承租人id

    @Basic
    @Column(name = "author_number", nullable = true)
    private Integer authorNumber; //申请授权临时密码次数

    @Basic
    @Column(name = "effective_july_date", nullable = true)
    private String effectiveJulyDate; //生效年月：yyyyMM

    @Basic
    @Column(name = "use_number", nullable = true)
    private Integer useNumber; //授权临时密码已使用次数

    @Basic
    @Column(name = "password_validity", nullable = true)
    private Integer passwordValidity; //授权临时密码有效期(天)

    @Basic
    @Column(name = "create_time", nullable = true)
    private Date createTime; //创建时间

    @Basic
    @Column(name = "operator_user_id", nullable = true)
    private Long operatorUserId; //操作人

    @Basic
    @Column(name = "last_update_time", nullable = true)
    private Date lastUpdateTime;//最后更新时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMatchUserStockId() {
        return matchUserStockId;
    }

    public void setMatchUserStockId(String matchUserStockId) {
        this.matchUserStockId = matchUserStockId;
    }

    public Integer getAuthorNumber() {
        return authorNumber;
    }

    public void setAuthorNumber(Integer authorNumber) {
        this.authorNumber = authorNumber;
    }

    public String getEffectiveJulyDate() {
        return effectiveJulyDate;
    }

    public void setEffectiveJulyDate(String effectiveJulyDate) {
        this.effectiveJulyDate = effectiveJulyDate;
    }

    public Integer getUseNumber() {
        return useNumber;
    }

    public void setUseNumber(Integer useNumber) {
        this.useNumber = useNumber;
    }

    public Integer getPasswordValidity() {
        return passwordValidity;
    }

    public void setPasswordValidity(Integer passwordValidity) {
        this.passwordValidity = passwordValidity;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getOperatorUserId() {
        return operatorUserId;
    }

    public void setOperatorUserId(Long operatorUserId) {
        this.operatorUserId = operatorUserId;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    public String toString() {
        return "MatchUserAuthor{" +
                "matchUserStockId='" + matchUserStockId + '\'' +
                ", authorNumber=" + authorNumber +
                ", effectiveJulyDate='" + effectiveJulyDate + '\'' +
                ", useNumber=" + useNumber +
                ", passwordValidity=" + passwordValidity +
                ", createTime=" + createTime +
                ", operatorUserId=" + operatorUserId +
                ", lastUpdateTime=" + lastUpdateTime +
                '}';
    }
}
